#include "GraphicsTool.h"

#include <QApplication>
#include "ElaApplication.h"
#include "common.h"
#include "t_result.h"

int main(int argc, char *argv[])
{
// #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
//     QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
// #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
//     QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
//     QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
// #else
//     //根据实际屏幕缩放比例更改
//     qputenv("QT_SCALE_FACTOR", "1.5");
// #endif
// #endif    
    qputenv("QT_SCALE_FACTOR", "1.0");

    //注册自定义类型
    qRegisterMetaType<cutomitem>("cutomitem");
    qRegisterMetaType<BlockInfo>("BlockInfo");

    QApplication a(argc, argv);
    eApp->init();

    GraphicsTool w;
    w.showMaximized();

    //启动清楚信息
    T_ResultIns->ClearText();

    return a.exec();
}
